| Table 22.2 Methods of the Collection Class. |
| Method | Description |
| Add | Adds one item to the Collection class. You pass to the Add method an object you want to add. You can optionally pass a Key value to assign to the Key property of this element that uniquely identifies this object. You can also pass a parameter specifying which element you want to insert this object before or after. |
| Item | When you call the Item method, you pass in a Key value or an index number of the element you want to return an object pointer for. If the Item method detects a numeric value passed to it, it searches for the element using the Index number. If the item method detects a string value passed to it, it searches for the element using the Key value. |
| Remove | The Remove method eliminates an element from the collection. You need to pass to the Remove method the Key or the index number of the element to remove. |